package cn.chenhuanming.chuanzhi.dao;

import cn.chenhuanming.chuanzhi.util.entity.Staff;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Administrator on 2017-05-06.
 */
public interface StaffDao extends JpaRepository<Staff,String> {

    Page<Staff> findByUsernameContainingOrRealNameContaining(String username, String realName, Pageable pageable);
    Staff findByUsername(String username);
}
